﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebApplication1.CookieDemo
{
    public partial class WebForm2 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Request.Cookies["CurrentUser"] == null)
            {
                Response.Write("未知用户！");
            }
            else
            {
                Response.Write("欢迎你，"+ Server.UrlDecode(Request.Cookies["CurrentUser"].Value));
            }
        }
    }
}